package org.zhxy.core.principal.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import org.zhxy.common.aop.AutomaticLog;
import org.zhxy.common.config.ServiceFactory;
import org.zhxy.common.response.Result;

@RestController
@RequestMapping("/subSchool")
public class SubSchoolController {

    @AutomaticLog("查询所有校区")
    @RequestMapping(value = "/searchAllSubSchool",method = RequestMethod.GET)
    public Result searchAllSubSchool(){
        return Result.SUCCESS_NO_MESSAGE(ServiceFactory.subSchoolService.searchAllSubSchool());
    }
}
